package cn.edu.klmy.dao;

import org.springframework.jdbc.core.JdbcTemplate;

import javax.annotation.Resource;
import javax.sql.DataSource;

/**
 * DAO-JDBC基类
 *
 * @author 顾伟
 *         创建日期：13-3-29
 */
public abstract class AbstractJdbcTemplate {

    @Resource(name = "dataSource")
    public void setDataSource(DataSource dataSource) {
        jdbcTemplate = new JdbcTemplate(dataSource);
    }

    protected JdbcTemplate jdbcTemplate;


}
